<template>
  <el-menu
    default-active="2"
    class="el-menu-vertical-demo"
    @open="handleOpen"
    @close="handleClose"
    background-color="#D3DCE6"
    text-color="black"
    active-text-color="rgb(255, 81, 0)"
  >
    <el-submenu index="1">
      <template slot="title">
        <i class="el-icon-menu"></i>
        <span>管理员</span>
      </template>
      <el-menu-item-group>
        <el-menu-item index="1-1"><router-link to="/AdmSystem/AdmList" tag="div">管理员</router-link></el-menu-item>
      </el-menu-item-group>
    </el-submenu>

     <el-submenu index="2">
      <template slot="title">
        <i class="el-icon-menu"></i>
        <span>商家</span>
      </template>
       <el-menu-item-group>
        <el-menu-item index="1-1"><router-link to="/AdmSystem/StoresList" tag="div">商家详情</router-link></el-menu-item>
      </el-menu-item-group>
    </el-submenu>

     <el-submenu index="3">
      <template slot="title">
        <i class="el-icon-menu"></i>
        <span>门店</span>
      </template>
       <el-menu-item-group>
        <el-menu-item index="1-1"><router-link to="/AdmSystem/AdmShops" tag="div">门店详情</router-link></el-menu-item>
      </el-menu-item-group>
    </el-submenu>

    <el-submenu index="4">
      <template slot="title">
        <i class="el-icon-setting"></i>
        <span>设置</span>
      </template>
      <el-menu-item-group>
        <el-menu-item index="1-1">
          <router-link to="/StoresSystem/" tag="div">登录</router-link>
        </el-menu-item>
      </el-menu-item-group>
    </el-submenu>
    
    
  </el-menu>
</template>

<script>
export default {
    methods: {
      handleOpen(key, keyPath) {
        // console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        // console.log(key, keyPath);
      }
    }
};
</script>

<style>
.el-menu-item{
  padding: 0 !important;
}
</style>